<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<script th:inline="javascript">
/*<![CDATA[*/
  $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
  $(function(){
	  battcn.admin.menu[[${OP.menuId}]].save = function(obj) {
	      var params = {};
	      var expid = $("#expid").val();
          if(expid == ''){
              layer.msg("数据有误，请刷新重试！");
              return;
          }
	      params.expid = expid;
          params.status = obj;
          params.remark = $("#remark").val();
            var $form = $("#menu[[${OP.menuId}]]Form");
            if($form.valid()){
            battcn.ajaxJson({url:"/op_recall_[[${OP.menuId}]]",data:params},function(){
                battcn.closeWindow();
                $('#admin_menu[[${OP.menuId}]]_datagrid').bootstrapTable('refresh');
            });
        };
        };


	  laydate.render({
          elem: '#happenDate'
      });
  });


/*]]>*/
</script>
<div class="ibox float-e-margins animated fadeInRight">
	<div class="ibox-content">
		<form class="form-horizontal m-t required-validate" th:id="@{menu{menuId}Form(menuId=${OP.menuId})}" method="POST" >
			<input type="hidden" name="expid" id="expid" th:value="${dto?.id}"/>
			<!--<div class="form-group" th:if="${dto==null}">-->
				<!--<label class="col-sm-3 control-label">菜单：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<select class="form-control m-b" name="menuId" validate="{ required: true,messages:{required:'请选择菜单'}}">-->
						<!--<option value="">请选择菜单</option>-->
						<!--<option th:each="m : ${menus}" th:value="${m?.id}" th:selected="${m.id == dto?.menuId}" th:text="${m.name}"></option>-->
					<!--</select>-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">-->
				<!--<label class="col-sm-3 control-label">申请人姓名：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input name="money" th:value="${dto?.user}" class="form-control"-->
						   <!--validate="{required: true,maxlength:20,messages:{required:'请填写姓名',maxlength:' '}}"-->
						   <!--type="text"/>-->
				<!--</div>-->
			<!--</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">申请内容：</label>
				<div class="col-sm-8">
					<div th:text="${dto?.content}" style="padding-top: 7px;"></div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">金额：</label>
				<div class="col-sm-8">
					<div th:text="${dto?.money}" style="padding-top: 7px;"></div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">申请日期：</label>
				<div class="col-sm-8">
					<div th:text="${dto?.happenDate}" style="padding-top: 7px;"></div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">申请备注：</label>
				<div class="col-sm-8">
					<div th:text="${dto?.remark}" style="padding-top: 7px;"></div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">审批过程：</label>
				<div class="col-sm-8">
					<div style="padding-bottom: 10px;padding-left: 10px;border-left:1px solid #000;" th:if="${records != null}" th:each="record : ${records}" th:utext="${'&lt;span style=font-weight:bold;color:#111;&gt;'+(record.status == '1' ? '部门审核':'')+(record.status == '2' ? '会计审核':'')+(record.status == '3' ? '总经理审核':'')+(record.status == '4' ? '出金':'')+(record.status == '5' ? '&lt;span style=color:red &gt;驳回&lt;/span&gt;':'')+'备注：&lt;/span&gt;'+record.remark.concat('&lt;br /&gt;'+#dates.format(record.createDate,'yyyy-MM-dd HH:mm:ss')+'&emsp;&emsp;&emsp;'+record.createName+'&emsp;&emsp;&emsp;'+(record.status!='5'? '&lt;span style=color:green &gt;通过&lt;span/&gt;':'&lt;span style=color:red &gt;驳回&lt;/span&gt;'))}"></div>
					<div th:if="${records.size() == 0}">暂未审批</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">审批备注：</label>
				<div class="col-sm-8">
					<textarea name="remark" id="remark" cols="55" rows="3" style="resize: vertical;" class="form-control" th:text="${dto?.remark}"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>
</html>